<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2018/9/21
 * Time: 20:34
 */
function __autoload($c_name)
{
    require_once  $c_name.".php";
}
//include "book.php";
//include "phone.php";

$BOOK=new book();
$BOOK->name="斗破苍穹";
$BOOK->money=123;
$BOOK->sum=456;
$BOOK->author="萧炎";
$BOOK->Press="清华大学出版社";
$BOOK->B();
$PHONE=new phone();
$PHONE->name="华为荣耀10";
$PHONE->money=456;
$PHONE->sum=3;
$PHONE->brand="华为";
$PHONE->PlaceOfOrigin="深圳";
$PHONE->B();